{% extends '::base.html.twig' %}

{% block body -%}
    <h1>Editar Cliente </h1>
    
    <p>Codigo: {{entity.id }}</p>
    <form action="{{ path('clientes_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
        <input type="hidden" name="_method" value="PUT" />
        {{ form_widget(edit_form) }}
        <p>
            <button type="submit">Guardar</button>
        </p>
    </form>

        <ul class="record_actions">
    <li>
        <a href="{{ path('clientes') }}">
            Listado de Clientes
        </a>
    </li>
    <li>
        <form action="{{ path('clientes_delete', { 'id': entity.id }) }}" method="post">
            <input type="hidden" name="_method" value="DELETE" />
            {{ form_widget(delete_form) }}
            <button type="submit">Borrar</button>
        </form>
    </li>
</ul>
{% endblock %}
